import expressApi from 'api/express'

// state
let state = {
  send_list: []
}

// getters
const getters = {
  send_list: state => state.send_list
}

// actions
const actions = {
  send_list ({ commit, state }, params) { // 招商计划列表
    expressApi.send_list(params).then((json) => {
      commit('SEND_LIST', {
        params: params,
        data: json.data
      })
    })
  }
}
// mutations
const mutations = {
  SEND_LIST (state, { data, params }) { // 招商列表
    state.send_list = data
  }
}

export default {
  namespaced: true,
  state,
  getters,
  actions,
  mutations
}
